<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<%@ include file= "/common/CimsCommon.jsp"%>
<title></title>
</head>
<body>
  <!-- 列表按钮操作 start -->
	<div id="tableToolbar" class="tableToolbar" style="display:none;">
		  	<a href="javascript:void(0)" onclick="toAddData()" index="0">新增</a>
		  	<a href="javascript:void(0)" onclick="toUpdateData()" index="1">修改</a>
		  	<a href="javascript:void(0)" onclick="deleteData()" index="2">删除</a>
	 </div>
<!-- 列表按钮操作 end -->
 <%@include file="/common/listPage.jsp"%>
<script>
$(function(){
	var formStructure=new Cmm.baseObjects.BaseFormItem({isDefault:false});
	formStructure.columns=[
         {display : '机构编号', code : 'cooperorgCode', width : 100,  type:'text', value:''},
	     {display : '机构名称', code : 'cooperorgName', width : 100,  type:'text', value:''}
     ];
	
	var toolbar={
		title:"机构参数"
	}
	var tableStructure=new Cmm.baseObjects.BaseTableItem({primaryKey:"id",url:contextRootPath+"/paramManage/partner/queryListTCMmCooperorg"});
	tableStructure.columns=[
         {display: '机构编号', code: 'cooperorgCode', width:150, align:'center'}
        ,{display: '机构名称', code: 'cooperorgName', width:150, align:'center'},
	    ,{display : '类型', code : 'type', width : 150,  align:'center', type:'select', 
	     value:<syscode:dictionary codeType="CIMS_PARTNERTYPE" type="json"></syscode:dictionary>}
       ];
	tableStructure.toolbar=[
	     {"text":"新增","action":tableStructure.buildButtonAction({"text":'新增合作机构',"url":'<app:contextPath/>/paramManage/partner/prepareExecute/toAdd'},"add")},
	     {"text":"修改","action":tableStructure.buildButtonAction({"text":'修改合作机构',"url":'<app:contextPath/>/paramManage/partner/prepareExecute/toUpdate'},"update")},
	     {"text":"删除","action":tableStructure.buildButtonAction({"text":'删除合作机构',"url":'<app:contextPath/>/paramManage/partner/deleteTCMmCooperorg'},"delete")},
	     {"text":"查看","action":tableStructure.buildButtonAction({"text":'查看合作机构',"url":'<app:contextPath/>/paramManage/partner/prepareExecute/toView'},"view")}
	     ];
	var searchIframe={"toolbar":toolbar,"form":formStructure,"table":tableStructure};
	iframe=$("#content").newSearchIframe(searchIframe);
	iframe.show();	
	formStructure.setSearchIframe(iframe);
	tableStructure.setSearchIframe(iframe);
});
</script>
</body>
</html>